package com.boot1.service.impl;

import com.boot1.dao.StudentDao;
import com.boot1.service.impl.impl.StudentDaoImpl;
import com.boot1.pojo.Student;
import com.boot1.service.StudentService;

/**
 * @author wzm
 * @create 2024-02-26 15:47
 * project_name:JavaWeb2401
 * @Description
 */
public class StudentServiceImpl implements StudentService {
    //创建dao对象
    private StudentDao studentDao = new StudentDaoImpl();

    @Override
    public boolean add(Student student) {
        studentDao.insertStudent(student);
        /*if(是否成功){
            return true;
        }else {
            return false;
        }*/
        return false;
    }

    @Override
    public boolean delete(int id) {
        return false;
    }
}
